package main

import (
	"encoding/json"
	"fmt"
)

type Monster struct {
	Name     string
	Age      int
	Birthday string
	Sal      float64
	Skill    string
}

func testStruct() {
	var monster = Monster{
		Name:     "牛魔王",
		Age:      200,
		Birthday: "2011-11-11",
		Sal:      8000.0,
		Skill:    "芭蕉扇",
	}

	marshal, _ := json.Marshal(monster)
	fmt.Println(string(marshal))
}
func main() {
	testStruct()
}
